
<!-- Bootstrap -->
<script src="__CONSOLE__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="__CONSOLE__/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="__CONSOLE__/vendors/nprogress/nprogress.js"></script>
<!-- iCheck -->
<script src="__CONSOLE__/vendors/iCheck/icheck.min.js"></script>

<!-- Datatables -->
<!--<script src="__CONSOLE__/vendors/datatables.net/js/jquery.dataTables.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>-->
<!--<script src="__CONSOLE____CONSOLE__/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-buttons/js/buttons.print.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>-->
<!--<script src="__CONSOLE__/vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/jszip/dist/jszip.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/pdfmake/build/pdfmake.min.js"></script>-->
<!--<script src="__CONSOLE__/vendors/pdfmake/build/vfs_fonts.js"></script>-->
<!--第一步：引入Javascript / CSS （CDN）-->
<!-- DataTables CSS -->
<!-- DataTables -->
<!--<script type="text/javascript" charset="utf8" src="http://cdn.datatables.net/1.10.15/js/jquery.dataTables.js"></script>-->
<!-- Switchery左右滑动开关 -->
<script src="__CONSOLE__/vendors/switchery/dist/switchery.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="__CONSOLE__/build/js/custom.min.js"></script>
<script src="__CONSOLE__/public.js"></script>
<script src="__PLUGIN__/layer/layer.js"></script>
<script src="__PLUGIN__/select2/dist/js/select2.js"></script>
<script src="__PLUGIN__/select2/dist/js/select2.full.js"></script>
<!-- daterangepicker -->
<link href="__CONSOLE__/css/custom.css" rel="stylesheet">
<script type="text/javascript" src="__CONSOLE__/moment/moment.min.js"></script>
<script type="text/javascript" src="__CONSOLE__/datepicker/daterangepicker.js"></script>
<!-- daterangepicker -->
<!--点击图片放大-->

<!--点击图片放大-->
<script type="text/javascript">
    // list
    $(document).ready(function () {
        // select2
        $('#interval_timer').daterangepicker(null,
            function(start, end, label) {
//                console.log(start.toISOString(), end.toISOString(), label);
            });
        $(".select2").select2({
            placeholder: "请选择",
            allowClear: true
        });
    });

</script>
<script>
    function index_update(url) {
        $('#form_volist').attr("action", url).submit();
    }

</script>
<script>
    $(function () {
        $("input[name='excel']").change(function () {
            var formData = new FormData();
            var file = $("[name=excel]")[0].files[0];
            formData.append("excel",file);
            console.log(formData)
            // formData.append("pro
            $.ajax({
                url:'{:url("read")}',
                type:'POST',
                async: false,
                data: formData,
                dataType:'json',
                cache: false, // 上传文件无需缓存
                processData : false, // 使数据不做处理
                contentType : false, // 不要设置Content-Type请求头
                success: function(ret){
                    layer.msg(ret.msg);
                    if (ret.code == '200') {
                        setTimeout(function () {
                            history.go(0);
                        },2000);
                    }
                },
                error:function(response){
                    console.log(response);
                }
            });
        });
    });
</script>
<script>
    /**
     * 审核事件 自动审核微信支付宝  点击审核自动返回成功和失败
     */
    $('.click_1').click(function () {
        var id = $(this).attr('attr-id');
        $.ajax({
            type: "POST", //用POST方式传输
            dataType: "json", //数据格式:JSON
            url: "{:url('audit_status')}", //目标地址
            async: false,
            traditional: false,
            data: {id:id},
            success: function (ret) {
                layer.msg(ret.msg);
                setTimeout(function () {
                    if(ret.code == 200 || ret.code == 401){
                        history.go();
                    }
                },3000);

            }
        });
    });


</script>
<!--<script>$('#datatable').DataTable({-->

    <!--language: {-->
        <!--"sProcessing": "处理中...",-->
        <!--"sLengthMenu": "显示 _MENU_ 项结果",-->
        <!--"sZeroRecords": "没有匹配结果",-->
        <!--"sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",-->
        <!--"sInfoEmpty": "显示第 0 至 0 项结果，共 0 项",-->
        <!--"sInfoFiltered": "(由 _MAX_ 项结果过滤)",-->
        <!--"sInfoPostFix": "",-->
        <!--"sSearch": "搜索:",-->
        <!--"sUrl": "",-->
        <!--"sEmptyTable": "表中数据为空",-->
        <!--"sLoadingRecords": "载入中...",-->
        <!--"sInfoThousands": ",",-->
        <!--"oPaginate": {-->
            <!--"sFirst": "首页",-->
            <!--"sPrevious": "上页",-->
            <!--"sNext": "下页",-->
            <!--"sLast": "末页"-->
        <!--},-->
        <!--"oAria": {-->
            <!--"sSortAscending": ": 以升序排列此列",-->
            <!--"sSortDescending": ": 以降序排列此列"-->
        <!--}-->
    <!--}-->
<!--});-->
<!--</script>-->
<!--引入Switchery左右滑动开关翻页失效-->

